package com.huixue.zdb.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author ZhouHuRun
 * @since 2020-09-23
 */
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "c_id", type = IdType.AUTO)
    private Integer cId;

    /**
     * 商品名字
     */
    private String cName;

    /**
     * 价格
     */
    private BigDecimal cPrice;

    /**
     * 打包费
     */
    private BigDecimal cBaleprice;

    /**
     * 商品详情
     */
    private String cDetails;

    /**
     * 商品图片表id
     */
    private Integer cImageid;

    /**
     * 商品类型id
     */
    private Integer cTid;

    /**
     * 商品规格id
     */
    private Integer cSpecid;

    /**
     * 商品状态 0：上架,1：售完
     */
    private Integer cStatusid;


    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public BigDecimal getcPrice() {
        return cPrice;
    }

    public void setcPrice(BigDecimal cPrice) {
        this.cPrice = cPrice;
    }

    public BigDecimal getcBaleprice() {
        return cBaleprice;
    }

    public void setcBaleprice(BigDecimal cBaleprice) {
        this.cBaleprice = cBaleprice;
    }

    public String getcDetails() {
        return cDetails;
    }

    public void setcDetails(String cDetails) {
        this.cDetails = cDetails;
    }

    public Integer getcImageid() {
        return cImageid;
    }

    public void setcImageid(Integer cImageid) {
        this.cImageid = cImageid;
    }

    public Integer getcTid() {
        return cTid;
    }

    public void setcTid(Integer cTid) {
        this.cTid = cTid;
    }

    public Integer getcSpecid() {
        return cSpecid;
    }

    public void setcSpecid(Integer cSpecid) {
        this.cSpecid = cSpecid;
    }

    public Integer getcStatusid() {
        return cStatusid;
    }

    public void setcStatusid(Integer cStatusid) {
        this.cStatusid = cStatusid;
    }

    @Override
    public String toString() {
        return "Commodity{" +
        "cId=" + cId +
        ", cName=" + cName +
        ", cPrice=" + cPrice +
        ", cBaleprice=" + cBaleprice +
        ", cDetails=" + cDetails +
        ", cImageid=" + cImageid +
        ", cTid=" + cTid +
        ", cSpecid=" + cSpecid +
        ", cStatusid=" + cStatusid +
        "}";
    }
}
